import { defineStore } from 'pinia'
import { ref, computed } from 'vue'
export const useCounterStore = defineStore(
	'counter',
	() => {
		const count = ref(0)
		const double = computed(() => {
			return count.value * 9
		})
		return {
			count,
			double,
		}
	},
	{
		persist: true,key:'__persistedstate__counter'
	}
)
